package site.codeblog.designpattern.depend_reverse.after.impl;

import lombok.Data;
import site.codeblog.designpattern.depend_reverse.after.inteface.Cpu;
import site.codeblog.designpattern.depend_reverse.after.inteface.Disk;
import site.codeblog.designpattern.depend_reverse.after.inteface.Mem;
import site.codeblog.designpattern.depend_reverse.before.HaiDaoChuanMem;
import site.codeblog.designpattern.depend_reverse.before.InterCpu;
import site.codeblog.designpattern.depend_reverse.before.XiJieDisk;

@Data
public class Computer {

    private Cpu cpu;

    private Mem mem;

    private Disk disk;

    public void run(){
        cpu.run();
        mem.init();
        disk.init();
    }

}
